import QtQuick 2.0
import QtQuick.Controls 2.3


ItemDelegate{
    id: root
    x: locationBase.x
    width: locationBase.width
    focusPolicy: Qt.ClickFocus
    clip: true
    anchors.verticalCenter: parent.verticalCenter

    property var locationBase: 0
    property string mtext: "value"
    property bool styleStatu: false
    property alias textFontpointSize: textContext.font.pointSize

    Text {
        id: textContext
        color: root.parent.ListView.isCurrentItem ? "white" : "#44F6F6"
        text: mtext
        font.family: "Tahoma"
        font.bold: root.parent.ListView.isCurrentItem
        anchors.fill: parent
        transformOrigin: Item.Bottom
        font.pointSize: 13
//        font.weight: Font.Light
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
    }
}
